﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="BookingNoteLook.aspx.cs" Inherits="BookingNote_BookingNoteLook" Title="托运单信息列表" culture="auto" meta:resourcekey="PageResource2" uiculture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    &nbsp;&nbsp;&nbsp;
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        
            <div class="title">
                &nbsp;<asp:Label ID="lblPageType" runat="server" Text="查看托运单" 
                    meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
            <table class="add_table" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td align="right">
                        <asp:Label ID="lblPoNO" runat="server" Text="单号：" 
                            meta:resourcekey="lblPoNOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtPoNO" runat="server" meta:resourcekey="txtPoNOResource1"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblShipper" runat="server" Text="托运人：" 
                            meta:resourcekey="lblShipperResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlShipper" runat="server" Enabled="False" 
                            meta:resourcekey="ddlShipperResource1">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCustomer" runat="server" Text="客户客人：" 
                            meta:resourcekey="lblCustomerResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCustomer" runat="server" Enabled="False" 
                            meta:resourcekey="ddlCustomerResource1">
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblShipperLMID" runat="server" Text="联络人：" 
                            meta:resourcekey="lblShipperLMIDResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlShipperLM" runat="server" Enabled="False" 
                            meta:resourcekey="ddlShipperLMResource1">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblInvoiceNO" runat="server" Text="发票号：" 
                            meta:resourcekey="lblInvoiceNOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtInvoiceNO" runat="server" 
                            meta:resourcekey="txtInvoiceNOResource1"></asp:Label>
                    </td>
                     <td align="right" style="width: 99px">
                        <asp:Label ID="lblJobNum" runat="server" Text="Job#：" meta:resourcekey="lblJobNumResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtJobNum" runat="server" ></asp:Label>
                    </td>
                   
                </tr>
                <tr>
                 
                    <td align="right">
                        <asp:Label ID="lblMarket" runat="server" Text="市场：" 
                            meta:resourcekey="lblMarketResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMarket" runat="server" Enabled="False" 
                            meta:resourcekey="ddlMarketResource1">
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblCarrierForwar" runat="server" Text="船公司/货代：" 
                            meta:resourcekey="lblCarrierForwarResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCarrierForwar" runat="server" Enabled="False" 
                            meta:resourcekey="ddlCarrierForwarResource1">
                        </asp:DropDownList>
                    </td>                   
                </tr>
                <tr>
                 <td align="right">
                        <asp:Label ID="lblDestination" runat="server" Text="目的地：" 
                            meta:resourcekey="lblDestinationResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlDestination" runat="server" Enabled="False" 
                            meta:resourcekey="ddlDestinationResource1">
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblVV" runat="server" Text="船名及航次：" 
                            meta:resourcekey="lblVVResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txVV" runat="server" meta:resourcekey="txVVResource1"></asp:Label>
                    </td>
                   
                </tr>
                <tr>
                 <td align="right">
                        <asp:Label ID="lblWinStart" runat="server" Text="开仓日期：" 
                            meta:resourcekey="lblWinStartResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtWinStart" runat="server" 
                            meta:resourcekey="txtWinStartResource1"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblWinClose" runat="server" Text="截数日期：" 
                            meta:resourcekey="lblWinCloseResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtWinClose" runat="server" 
                            meta:resourcekey="txtWinCloseResource1"></asp:Label>
                    </td>
                   
                </tr>
                <tr>
                 <td align="right">
                        <asp:Label ID="lblWinLastClose" runat="server" Text="最后截数日：" 
                            meta:resourcekey="lblWinLastCloseResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtWinLastClose" runat="server" 
                            meta:resourcekey="txtWinLastCloseResource1"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblSICutOFFDate" runat="server" Text="最后海关预报日 ：" 
                            meta:resourcekey="lblSICutOFFDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtSICutOFFDate" runat="server" 
                            meta:resourcekey="txtSICutOFFDateResource1"></asp:Label>
                    </td>
                    
                </tr>
                <tr>
              
                    <td align="right">
                        <asp:Label ID="lblCPO" runat="server" Text="客户取购单号 ：" 
                            meta:resourcekey="lblCPOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCPO" runat="server" meta:resourcekey="txtCPOResource1"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblPcNO" runat="server" Text="装货单" 
                            meta:resourcekey="lblPcNOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtPcNO" runat="server" meta:resourcekey="txtPcNOResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                  <td align="right">
                        <asp:Label ID="lblBillDate" runat="server" Text="开单日期 ：" 
                            meta:resourcekey="lblBillDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtBillDate" runat="server" 
                            meta:resourcekey="txtBillDateResource1"></asp:Label>
                    </td>
                  
                    <td align="right">
                        <asp:Label ID="lblCreatedDate" runat="server" Text="入单时间" 
                            meta:resourcekey="lblCreatedDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCreatedDate" runat="server" 
                            meta:resourcekey="txtCreatedDateResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                    
                    <td align="right">
                        <asp:Label ID="lblCreatedUser" runat="server" Text="入单人" 
                            meta:resourcekey="lblCreatedUserResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCreatedUser" runat="server" 
                            meta:resourcekey="txtCreatedUserResource1"></asp:Label>
                    </td>
                     <td align="right">
                        <asp:Label ID="lblLastModDate" runat="server" Text="修改时间" 
                            meta:resourcekey="lblLastModDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtLastModDate" runat="server" 
                            meta:resourcekey="txtLastModDateResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                   
                    <td align="right">
                        <asp:Label ID="lblLastModUser" runat="server" Text="修改人" 
                            meta:resourcekey="lblLastModUserResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtLastModUser" runat="server" 
                            meta:resourcekey="txtLastModUserResource1"></asp:Label>
                    </td>
                     <td align="right">
                        <asp:Label ID="lblStatus" runat="server" Text="状态" 
                            meta:resourcekey="lblStatusResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtStatus" runat="server" meta:resourcekey="txtStatusResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                   
                    <td align="right">
                        <asp:Label ID="lblCheckedDate" runat="server" Text="审核时间" 
                            meta:resourcekey="lblCheckedDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCheckedDate" runat="server" 
                            meta:resourcekey="txtCheckedDateResource1"></asp:Label>
                    </td>
                     <td align="right">
                        <asp:Label ID="lblCancelDate" runat="server" Text="取消时间" 
                            meta:resourcekey="lblCancelDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCancelDate" runat="server" 
                            meta:resourcekey="txtCancelDateResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                   <td align="right">
                   <asp:Label ID="lblSourceCodes" runat="server"  Text="Source Code："  meta:resourcekey="lblSourceCodesResource1"></asp:Label>
                   </td>
                   <td><asp:Label ID="txtSourceCodes" runat="server"></asp:Label></td>
                     <td align="right">
                        <asp:Label ID="lblRemark" runat="server" Text="备注" 
                            meta:resourcekey="lblRemarkResource1"></asp:Label>
                    </td>
                    <td colspan="3">
                        <asp:Label ID="txtRemark" runat="server" Width="90%" 
                            meta:resourcekey="txtRemarkResource1"></asp:Label>
                    </td>
                </tr>
            </table>
            <div class="title">
                &nbsp;<asp:Label ID="lblTitleDetail" runat="server" Text="托运单详细信息列表" 
                    meta:resourcekey="lblTitleDetailResource1"></asp:Label></div>
            <div class="list_title">
                <div class="autoleft">
                    <asp:Label ID="lblTotal" runat="server" meta:resourcekey="lblTotalResource1"></asp:Label><asp:Label ID="lblRecordFound" runat="server" Text="条记录" meta:resourcekey="lblRecordFoundResource1"></asp:Label>&nbsp;</div>
                <div class="autoright">
                     <asp:Label ID="lblPerPageDisplay" runat="server" Text="每页显示：" meta:resourcekey="lblPerPageDisplayResource1"></asp:Label>
                    <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" 
                         OnSelectedIndexChanged="ddlPages_SelectedIndexChanged" 
                         meta:resourcekey="ddlPagesResource1">
                        <asp:ListItem Selected="True" Text="5" Value="5" 
                            meta:resourcekey="ListItemResource1"></asp:ListItem>
                        <asp:ListItem Text="10" Value="10" meta:resourcekey="ListItemResource2"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div style="overflow: auto; width: 100%; height: 400px; padding: 1px;">
                <asp:GridView ID="gvBookNoteDetailList" runat="server" AllowPaging="True" PageSize="5"
                    EmptyDataText="托运单详细为空" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="gvBookNoteDetailList_PageIndexChanging"
                     CssClass="tblGridView" OnSorting="gvBookNoteDetailList_Sorting"
                    AllowSorting="True" meta:resourcekey="gvBookNoteDetailListResource1">
                    <PagerTemplate>
                        <table style="width: 100%">
                            <tr>
                                <td>
                                    <asp:Label ID="lblCurrentPage" runat="server" Text="页次" meta:resourcekey="lblCurrentPageResource1"></asp:Label>:&nbsp;<asp:Label 
                                        ID="Label1" runat="server" 
                                        Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>' 
                                        meta:resourcekey="Label1Resource1"></asp:Label>/<asp:Label
                                        ID="Label2" runat="server" 
                                        Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' 
                                        meta:resourcekey="Label2Resource1"></asp:Label>页&nbsp;
                                    <asp:Label ID="lblTotalPages" runat="server" Text="总计" meta:resourcekey="lblTotalPagesResource1"></asp:Label>:&nbsp;<asp:Label 
                                        ID="Label3" runat="server" 
                                        Text="<%# ((System.Data.DataView)gvBookNoteDetailList.DataSource).Count %>" 
                                        meta:resourcekey="Label3Resource1"></asp:Label>
                                </td>
                                <td align="right">
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                        Text="首页" meta:resourcekey="LinkButton1Resource1"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                        Text="前页" meta:resourcekey="LinkButton2Resource1"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                        Text="后页" meta:resourcekey="LinkButton3Resource1"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                        Text="尾页" meta:resourcekey="LinkButton4Resource1"></asp:LinkButton>&nbsp;
                                    <asp:Label ID="lblTurnOn" runat="server" Text="转第" 
                                        meta:resourcekey="lblTurnOnResource1"></asp:Label>
                                    <asp:TextBox ID="txtPages"
                                        runat="server" Width="35px" meta:resourcekey="txtPagesResource1"></asp:TextBox>                                  
                                    <asp:LinkButton ID="lbtnGo" runat="server" Text="提交" OnClick="lbtnGo_Click" 
                                        meta:resourcekey="lbtnGoResource1"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </PagerTemplate>
                    <Columns>
                        <asp:TemplateField HeaderText="确认单号" SortExpression="ConfirmNO" 
                            meta:resourcekey="TemplateFieldResource1">
                            <ItemTemplate>
                                <asp:Label ID="lblConfirmNO2" runat="server" Text='<%# Eval("ConfirmNO") %>' 
                                    meta:resourcekey="lblConfirmNO2Resource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="工厂" SortExpression="VendorID" 
                            meta:resourcekey="TemplateFieldResource2">
                            <ItemTemplate>
                                <asp:Label ID="lblVendorID" runat="server" 
                                    Text='<%# GetClient(Eval("VendorID")) %>' 
                                    meta:resourcekey="lblVendorIDResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="工厂联络人" SortExpression="VendorLinkMan" 
                            meta:resourcekey="TemplateFieldResourceVendorLinkMan">
                            <ItemTemplate>
                                <asp:Label ID="lblVendorLinkMan" runat="server" 
                                    Text='<%# GetClientLinkMan(Eval("VendorLinkMan")) %>' 
                                    meta:resourcekey="lblVendorLinkManResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="仓库" SortExpression="WhouseID" 
                            meta:resourcekey="TemplateFieldResource3">
                            <ItemTemplate>
                                <asp:Label ID="lblWhouseID" runat="server" 
                                    Text='<%# GetClient(Eval("WhouseID")) %>' 
                                    meta:resourcekey="lblWhouseIDResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="落货纸号" SortExpression="SONO" 
                            meta:resourcekey="TemplateFieldResource4">
                            <ItemTemplate>
                                <asp:Label ID="lblSONO" runat="server" Text='<%# Eval("SONO") %>' 
                                    meta:resourcekey="lblSONOResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="整框/散货" SortExpression="FCLLCL" 
                            meta:resourcekey="TemplateFieldResource5">
                            <ItemTemplate>
                                <asp:Label ID="lblFCLLCL" runat="server" Text='<%# Eval("FCLLCL") %>' 
                                    meta:resourcekey="lblFCLLCLResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="香港/国内" SortExpression="HKPRC" 
                            meta:resourcekey="TemplateFieldResource6">
                            <ItemTemplate>
                                <asp:Label ID="lblHKPRC" runat="server" Text='<%# Eval("HKPRC") %>' 
                                    meta:resourcekey="lblHKPRCResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="预约时间" SortExpression="BespokeDate" 
                            meta:resourcekey="TemplateFieldResource7">
                            <ItemTemplate>
                                <asp:Label ID="lblBespokeDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd}",Eval("BespokeDate")) %>' 
                                    meta:resourcekey="lblBespokeDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收货日" SortExpression="JobDate" 
                            meta:resourcekey="TemplateFieldResource8">
                            <ItemTemplate>
                                <asp:Label ID="lblJobDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd}",Eval("JobDate")) %>' 
                                    meta:resourcekey="lblJobDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="交货日" SortExpression="DeliveryDate" 
                            meta:resourcekey="TemplateFieldResource9">
                            <ItemTemplate>
                                <asp:Label ID="lblDeliveryDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd}",Eval("DeliveryDate")) %>' 
                                    meta:resourcekey="lblDeliveryDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="货号" SortExpression="ItemNO" 
                            meta:resourcekey="TemplateFieldResource10">
                            <ItemTemplate>
                                <asp:Label ID="lblItemNO" runat="server" Text='<%# Eval("ItemNO") %>' 
                                    meta:resourcekey="lblItemNOResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="件数" SortExpression="PCS" 
                            meta:resourcekey="TemplateFieldResource11">
                            <ItemTemplate>
                                <asp:Label ID="lblPCS" runat="server" Text='<%# Eval("PCS") %>' 
                                    meta:resourcekey="lblPCSResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="箱数" SortExpression="CTN" 
                            meta:resourcekey="TemplateFieldResource12">
                            <ItemTemplate>
                                <asp:Label ID="lblCTN" runat="server" Text='<%# Eval("CTN") %>' 
                                    meta:resourcekey="lblCTNResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="毛重" SortExpression="GrossWT" 
                            meta:resourcekey="TemplateFieldResource13">
                            <ItemTemplate>
                                <asp:Label ID="lblGrossWT" runat="server" Text='<%# Eval("GrossWT") %>' 
                                    meta:resourcekey="lblGrossWTResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="体积" SortExpression="VOL" 
                            meta:resourcekey="TemplateFieldResource14">
                            <ItemTemplate>
                                <asp:Label ID="lblVOL" runat="server" Text='<%# Eval("VOL") %>' 
                                    meta:resourcekey="lblVOLResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="柜号" SortExpression="ContainerNO" 
                            meta:resourcekey="TemplateFieldResource15">
                            <ItemTemplate>
                                <asp:Label ID="lblContainerNO" runat="server" Text='<%# Eval("ContainerNO") %>' 
                                    meta:resourcekey="lblContainerNOResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="封条号" SortExpression="SealNO" 
                            meta:resourcekey="TemplateFieldResource16">
                            <ItemTemplate>
                                <asp:Label ID="lblSealNO" runat="server" Text='<%# Eval("SealNO") %>' 
                                    meta:resourcekey="lblSealNOResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="船名及航次" SortExpression="VV" 
                            meta:resourcekey="TemplateFieldResource17">
                            <ItemTemplate>
                                <asp:Label ID="lblVV" runat="server" Text='<%# Eval("VV") %>' 
                                    meta:resourcekey="lblVVResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开单日期" SortExpression="BillDate" 
                            meta:resourcekey="TemplateFieldResource18">
                            <ItemTemplate>
                                <asp:Label ID="lblBillDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("BillDate")) %>' 
                                    meta:resourcekey="lblBillDateResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="上次修改时间" SortExpression="LastModDate" 
                            meta:resourcekey="TemplateFieldResource19">
                            <ItemTemplate>
                                <asp:Label ID="lblLastModDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("LastModDate")) %>' 
                                    meta:resourcekey="lblLastModDateResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="上次修改人" SortExpression="LastModUser" 
                            meta:resourcekey="TemplateFieldResource20">
                            <ItemTemplate>
                                <asp:Label ID="lblLastModUser" runat="server" 
                                    Text='<%# GetUserName( Eval("LastModUser")) %>' 
                                    meta:resourcekey="lblLastModUserResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="新增时间" SortExpression="CreatedDate" 
                            meta:resourcekey="TemplateFieldResource21">
                            <ItemTemplate>
                                <asp:Label ID="lblCreatedDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("CreatedDate")) %>' 
                                    meta:resourcekey="lblCreatedDateResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="新增人" SortExpression="CreatedUser" 
                            meta:resourcekey="TemplateFieldResource22">
                            <ItemTemplate>
                                <asp:Label ID="lblCreatedUser" runat="server" 
                                    Text='<%# GetUserName( Eval("CreatedUser")) %>' 
                                    meta:resourcekey="lblCreatedUserResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="状态" SortExpression="Status" 
                            meta:resourcekey="TemplateFieldResource23">
                            <ItemTemplate>
                                <asp:Label ID="lblStatus" runat="server" 
                                    Text='<%# HK2009.Common.StringUtil.GetBNDStatus(Eval("Status")) %>' 
                                    meta:resourcekey="lblStatusResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="工厂booking日期" SortExpression="BookingDate" 
                            meta:resourcekey="TemplateFieldResource24">
                            <ItemTemplate>
                                <asp:Label ID="lblBookingDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("BookingDate")) %>' 
                                    meta:resourcekey="lblBookingDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Booking人" SortExpression="BookingUser" 
                            meta:resourcekey="TemplateFieldResource25">
                            <ItemTemplate>
                                <asp:Label ID="lblBookingUser" runat="server" 
                                    Text='<%# GetUserName( Eval("BookingUser")) %>' 
                                    meta:resourcekey="lblBookingUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="分配日期" SortExpression="ArrangeDate" 
                            meta:resourcekey="TemplateFieldResource26">
                            <ItemTemplate>
                                <asp:Label ID="lblArrangeDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("ArrangeDate")) %>' 
                                    meta:resourcekey="lblArrangeDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="分配操作人" SortExpression="ArrangeUser" 
                            meta:resourcekey="TemplateFieldResource27">
                            <ItemTemplate>
                                <asp:Label ID="lblArrangeUser" runat="server" 
                                    Text='<%# GetUserName(Eval("ArrangeUser")) %>' 
                                    meta:resourcekey="lblArrangeUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输队确认Job日期" SortExpression="CJDate" 
                            meta:resourcekey="TemplateFieldResource28">
                            <ItemTemplate>
                                <asp:Label ID="lblCJDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("CJDate")) %>' 
                                    meta:resourcekey="lblCJDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="确认人" SortExpression="CJUser" 
                            meta:resourcekey="TemplateFieldResource29">
                            <ItemTemplate>
                                <asp:Label ID="lblCJUser" runat="server" 
                                    Text='<%# GetUserName(Eval("CJUser")) %>' meta:resourcekey="lblCJUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="公司确认Job日期" SortExpression="CBDate" 
                            meta:resourcekey="TemplateFieldResource30">
                            <ItemTemplate>
                                <asp:Label ID="lblCBDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("CBDate")) %>' 
                                    meta:resourcekey="lblCBDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="确认人" SortExpression="CBUser" 
                            meta:resourcekey="TemplateFieldResource31">
                            <ItemTemplate>
                                <asp:Label ID="lblCBUser" runat="server" 
                                    Text='<%# GetUserName(Eval("CBUser")) %>' meta:resourcekey="lblCBUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开暂收证明日期" SortExpression="PrintDate" 
                            meta:resourcekey="TemplateFieldResource32">
                            <ItemTemplate>
                                <asp:Label ID="lblPrintDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("PrintDate")) %>' 
                                    meta:resourcekey="lblPrintDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开暂收证明人" SortExpression="PrintUser" 
                            meta:resourcekey="TemplateFieldResource33">
                            <ItemTemplate>
                                <asp:Label ID="lblPrintUser" runat="server" 
                                    Text='<%# GetUserName( Eval("PrintUser")) %>' 
                                    meta:resourcekey="lblPrintUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="尾纸确认日期" SortExpression="ReceiptDate" 
                            meta:resourcekey="TemplateFieldResource34">
                            <ItemTemplate>
                                <asp:Label ID="lblReceiptDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("ReceiptDate")) %>' 
                                    meta:resourcekey="lblReceiptDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="尾纸确认人" SortExpression="ReceiptUser" 
                            meta:resourcekey="TemplateFieldResource35">
                            <ItemTemplate>
                                <asp:Label ID="lblReceiptUser" runat="server" 
                                    Text='<%# GetUserName(Eval("ReceiptUser")) %>' 
                                    meta:resourcekey="lblReceiptUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消Booking日期" SortExpression="CancelDate" 
                            meta:resourcekey="TemplateFieldResource36">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}",Eval("CancelDate")) %>' 
                                    meta:resourcekey="lblCancelDateResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消人" SortExpression="CancelUser" 
                            meta:resourcekey="TemplateFieldResource37">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelUser" runat="server" 
                                    Text='<%# GetUserName(Eval("CancelUser")) %>' 
                                    meta:resourcekey="lblCancelUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="公司取消确认时间" SortExpression="CancelConfirmDate" 
                            meta:resourcekey="TemplateFieldResource38">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelConfirmDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}",Eval("CancelConfirmDate")) %>' 
                                    meta:resourcekey="lblCancelConfirmDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="公司取消确认人" SortExpression="CancelConfirmUser" 
                            meta:resourcekey="TemplateFieldResource39">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelConfirmUser" runat="server" 
                                    Text='<%# GetUserName(Eval("CancelConfirmUser")) %>' 
                                    meta:resourcekey="lblCancelConfirmUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消分配日期" SortExpression="CancelArrDate" 
                            meta:resourcekey="TemplateFieldResource40">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelArrDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}",Eval("CancelArrDate")) %>' 
                                    meta:resourcekey="lblCancelArrDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消分配人" SortExpression="CancelArrangeUser" 
                            meta:resourcekey="TemplateFieldResource41">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelArrangeUser" runat="server" 
                                    Text='<%# GetUserName(Eval("CancelArrangeUser")) %>' 
                                    meta:resourcekey="lblCancelArrangeUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输队取消确认Job日期" SortExpression="CJCancelDate" 
                            meta:resourcekey="TemplateFieldResource42">
                            <ItemTemplate>
                                <asp:Label ID="lblCJCancelDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd HH:mm:ss}",Eval("CJCancelDate")) %>' 
                                    meta:resourcekey="lblCJCancelDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消确认人" SortExpression="CJCancelUser" 
                            meta:resourcekey="TemplateFieldResource43">
                            <ItemTemplate>
                                <asp:Label ID="lblCJCancelUser" runat="server" 
                                    Text='<%# GetUserName(Eval("CJCancelUser")) %>' 
                                    meta:resourcekey="lblCJCancelUserResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收货单号" SortExpression="PNNO" 
                            meta:resourcekey="TemplateFieldResource44">
                            <ItemTemplate>
                                <asp:Label ID="lblPNNO" runat="server" Text='<%# Eval("PNNO") %>' 
                                    meta:resourcekey="lblPNNOResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="装货单号" SortExpression="PCNO" 
                            meta:resourcekey="TemplateFieldResource45">
                            <ItemTemplate>
                                <asp:Label ID="lblPCNO" runat="server" Text='<%# Eval("PCNO") %>' 
                                    meta:resourcekey="lblPCNOResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="可提货日" SortExpression="CargoReadyDate" 
                            meta:resourcekey="TemplateFieldResource46">
                            <ItemTemplate>
                                <asp:Label ID="lblCargoReadyDate" runat="server" 
                                    Text='<%# String.Format("{0:yyyy-MM-dd}", Eval("CargoReadyDate")) %>' 
                                    meta:resourcekey="lblCargoReadyDateResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输公司" SortExpression="TruckCO" 
                            meta:resourcekey="TemplateFieldResource47">
                            <ItemTemplate>
                                <asp:Label ID="lblTruckCO" runat="server" Text='<%# Eval("TruckCO") %>' 
                                    meta:resourcekey="lblTruckCOResource1"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                          <asp:TemplateField HeaderText="Appointment" SortExpression="Appointment" 
                           >
                            <ItemTemplate>
                                <asp:Label ID="lblAppointment" runat="server" Text='<%# Eval("Appointament") %>' 
                                   ></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>     
                        
                        <asp:TemplateField HeaderText="备注" SortExpression="Remark" 
                            meta:resourcekey="TemplateFieldResource48">
                            <ItemTemplate>
                                <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark") %>' 
                                    meta:resourcekey="lblRemarkResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>                       
                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" />
                    <RowStyle HorizontalAlign="Center" />
                </asp:GridView>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnCheck" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnCancel" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <div align="center">
        <asp:Button ID="btnCheck" runat="server" Text="审核" CssClass="btn" 
            OnClick="btnCheck_Click" meta:resourcekey="btnCheckResource1" Visible="false" />&nbsp;
        <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="btn" 
            OnClick="btnCancel_Click" meta:resourcekey="btnCancelResource1" Visible="false" />&nbsp;<asp:Button
            ID="btnBack" runat="server" Text="返回" CssClass="btn" 
            OnClick="btnBack_Click" meta:resourcekey="btnBackResource1" />
    </div>
    <input type="hidden" id="hidUpdateNum" runat="server" />
</asp:Content>
